﻿@model Solution.Business.Entities.KhungGia

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>KhungGia</legend>

    <div class="display-label">Tên giá :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">Thuộc loại giao dịch :</div>
    <div class="display-field">
         @{
            if(Model.TrId == 1)
            {
                @Html.Label("Bán BĐS")
            }
            else if(Model.TrId == 2)
            {
                @Html.Label("Mua BĐS")
            }
            else if(Model.TrId == 3)
            {
                @Html.Label("Cho Thuê BĐS")
            }
            else if(Model.TrId == 4)
            {
                @Html.Label("Cần Thuê BĐS")
            }
        }
    </div>

    <div class="display-label">Min Price :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MinPrice)
    </div>

    <div class="display-label">Max Price :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MaxPrice)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.KhunggiaId }) |
    @Html.ActionLink("Back to List", "Index")
</p>
